<html>
<head>
<load href="__PUBLIC__/Js/Base.js" />
<load href="__PUBLIC__/Js/prototype.js" />
<load href="__PUBLIC__/Js/mootools.js" />
<load href="__PUBLIC__/Js/Ajax/ThinkAjax.js" />
<script language="JavaScript">
<!--

function checkName(){

	ThinkAjax.send('__URL__/checkName','ajax=1&username='+$(username).value,'','result');
}

function loginCheck(){
	ThinkAjax.sendForm('form1','__URL__/checkLogin',complete,'result');
}

function complete(data,status){
	if (status==1)
	{
	// 提示信息
	$('list').innerHTML = '<span style="color:blue">'+data+'你好!</span>';
	}
}
//重载验证码
function fleshVerify(){
	var timenow = new Date().getTime();
	document.getElementById('verifyImg').src='__URL__/verify/'+timenow;  
}


//-->
</script>
</head>
<body>
<div>
<div id="result"></div>
<div id="list"></div>
<form name="login" id="form1" method="post">
邮箱: <input type="text" name="email" id="username"/>
<input type="button" value="检查用户名" onClick="checkName()"><br />
密 码: <input type="password" name="password" /><br />
<tr>
	<td class="tRight tTop" >验证码：</td>
	<td><input name="verify" type="text" style="height:23px; width:60px;"  />&nbsp;<img id="verifyImg" SRC="__URL__/verify/" BORDER="0" ALT="" align="absmiddle">&nbsp;<a href="javascript:fleshVerify()">刷新验证码</a></td>
 </tr>
<input type="button" onClick="loginCheck()" value="提 交" />
</form>
</div>
</body>
</html>